package com.vdong.interactive.course.entity.mo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.util.Date;

@ApiModel
@Builder
@Data
//@Entity
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "goods_peddle_record")
public class GoodsPeddleRecord {
    /**
     * 主键
     */
    @ApiModelProperty(notes = "主键")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /**
     * 商品id
     */
    @ApiModelProperty(notes = "商品id")
    @Column(name = "goods_id")
    private Long goodsId;

    /**
     * 分销商品id
     */
    @ApiModelProperty(notes = "分销商品id")
    @Column(name = "peddle_goods_id")
    private Long peddleGoodsId;

    /**
     * 记录类型【0：审核 1：上下架】
     */
    @ApiModelProperty(notes = "记录类型【0：审核 1：上下架】")
    @Column(name = "operation_type")
    private Boolean operationType;

    /**
     * 具体操作状态
     */
    @ApiModelProperty(notes = "具体操作状态")
    @Column(name = "operation_status")
    private Boolean operationStatus;

    /**
     * 创建时间
     */
    @ApiModelProperty(notes = "创建时间")
    @Column(name = "create_date")
    private Date createDate;

    /**
     * 修改时间
     */
    @ApiModelProperty(notes = "修改时间")
    @Column(name = "modify_date")
    private Date modifyDate;

    /**
     * 创建者
     */
    @ApiModelProperty(notes = "创建者")
    @Column(name = "create_user")
    private Long createUser;

    /**
     * 修改者
     */
    @ApiModelProperty(notes = "修改者")
    @Column(name = "modify_user")
    private Long modifyUser;
}